package com.wlsk.license.common.exception;


import com.wlsk.license.common.enums.RetEnum;

/**
 * 业务异常
 * 打印该异常时不在打印栈信息
 * 处理逻辑是正常业务拦截时逻辑抛出
 */
public class BusinessException extends NoneStackException {

    public BusinessException(RetEnum retEnum) {
        super(retEnum.getCode(), retEnum.getMsg());
    }

    public BusinessException(int code, String message) {
        super(code, message);
    }

    public BusinessException(String message) {
        super(RetEnum.FAILED.getCode(), message);
    }
}
